package com.zxy.ziems.server.scene.pojo.vo;

import com.zxy.ziems.server.file.vo.FileVO;
import com.zxy.ziems.server.utils.tree.TreeInterface;
import lombok.Data;

import java.util.List;

/**
 * @author chdzq
 * @create 2023/3/22
 */
@Data
public class SceneTreeVO extends SceneVO implements TreeInterface<SceneTreeVO> {

    /**
     * 子集
     */
    private List<SceneTreeVO> children;

    @Override
    public String _getTreeCode() {
        return getId();
    }

    @Override
    public String _getTreeParentCode() {
        return getParentId();
    }

    @Override
    public void _setTreeChildren(List<SceneTreeVO> list) {
        setChildren(list);
    }

    @Override
    public List<SceneTreeVO> _getTreeChildren() {
        return getChildren();
    }
}
